package com.yfqy.app.domain.mapper;

import com.yfqy.app.domain.entity.OrderRefund;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderRefundMapper {

    int insert(OrderRefund record);

    OrderRefund selectByPrimaryKey(Long id);

    List<OrderRefund> selectByOrderId(@Param("orderId") Long orderId);

    int updateOrderRefundStatus(@Param("id") Long refundId, @Param("status") Byte status, @Param("currStatus") Byte currStatus);

    void updateRefundSuccess(@Param("id") Long id);

    void updateRefundFailed(@Param("id") Long id, @Param("status") Byte status, @Param("errorMsg") String errorMsg);

}